import request from '@/utils/request';

// 登录
export function getQnyConfig() {
  return request({
    url: '/channel/upload_config',
    method: 'post',
  });
}

// 获取已上传文件的id
export function getCloudFileId(data) {
  return request({
    url: '/channel/cloud_file',
    method: 'post',
    data,
  });
}

// 上传接口
export function uploadFileApi(data) {
  return request({
    url: '/user/upload',
    method: 'post',
    data,
  });
}
